package edu.purdue.cs.aggr.message;

import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;

public class VertexMoveCommand extends Message
{
  private String targetId = null;
  private String vertexId = null;
  
  @Override
  public void readExternal(ObjectInput in) throws IOException,
      ClassNotFoundException {
    super.readExternal(in);
    targetId = (String) in.readObject();
    vertexId = (String) in.readObject();
  }

  @Override
  public void writeExternal(ObjectOutput out) throws IOException {
    super.writeExternal(out);
    out.writeObject(targetId);
    out.writeObject(vertexId);
  }

  public final String getTargetId()
  {
    return targetId;
  }

  public final void setTargetId(String targetId)
  {
    this.targetId = targetId;
  }

  public final String getVertexId()
  {
    return vertexId;
  }

  public final void setVertexId(String id)
  {
    this.vertexId = id;
  }
}
